<!-- Logo -->
<a href="javascript:;" class="logo">
    <!-- 迷你模式下Logo的大小为50X50 -->
    <span class="logo-mini">Mon</span>
    <!-- 普通模式下Logo -->
    <span class="logo-lg"><?php echo $this->get('config.site.title', 'MonAdmin管理系统'); ?></span>
</a>
    
    <!-- 顶部通栏样式 -->
    <nav class="navbar navbar-static-top">
    
        <!--第一级菜单-->
        <div id="firstnav">
            <!-- 边栏切换按钮-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
    
            <!--如果不想在顶部显示角标,则给ul加上disable-top-badge类即可-->
            <ul class="nav nav-tabs nav-addtabs disable-top-badge hidden-xs" role="tablist">
                <?php echo $nav;?>
            </ul>
    
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="hidden-xs" title="查看主页">
                        <a href="<?php echo $container->url->build('/'); ?>" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i></a>
                    </li>

                    <!-- 清除缓存 -->
                    <!-- <li>
                        <a href="javascript:;" data-toggle="dropdown" title="清除缓存">
                            <i class="fa fa-trash"></i>
                        </a>
                        <ul class="dropdown-menu wipecache">
                            <li><a href="javascript:;" data-type="all"><i class="fa fa-trash"></i> {:__('Wipe all cache')}</a></li>
                            <li class="divider"></li>
                            <li><a href="javascript:;" data-type="content"><i class="fa fa-file-text"></i> {:__('Wipe content cache')}</a></li>
                            <li><a href="javascript:;" data-type="template"><i class="fa fa-file-image-o"></i> {:__('Wipe template cache')}</a></li>
                            <li><a href="javascript:;" data-type="addons"><i class="fa fa-rocket"></i> {:__('Wipe addons cache')}</a></li>
                        </ul>
                    </li> -->
    
                    <!-- 全屏按钮 -->
                    <li class="hidden-xs" title="全屏显示">
                        <a href="#" data-toggle="fullscreen"><i class="fa fa-arrows-alt"></i></a>
                    </li>
    
                    <!-- 账号信息下拉框 -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="<?php echo $this->assets($userInfo['avatar']);?>" class="user-image" alt="<?php echo $userInfo['username']?>">
                            <span class="hidden-xs"><?php echo $userInfo['username']?></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header" style="height: 142px;">
                                <img src="<?php echo $this->assets($userInfo['avatar']);?>" class="img-circle" alt="">
                                <p>
                                    <?php echo $userInfo['username']?>
                                </p>
                            </li>

                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="<?php echo $container->url->build('/admin/console/edit');?>" title="修改个人信息" class="btn btn-primary btn-dialog">
                                        <i class="fa fa-user"></i>
                                        修改密码
                                    </a>
                                </div>
                                <div class="pull-right">
                                    <a href="<?php echo $container->url->build('/admin/logout');?>" class="btn btn-danger">
                                        <i class="fa fa-sign-out"></i>
                                        注销登录
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <li class="hidden-xs"><span style="display: inline-block; width: 6px;"></span></li>
                </ul>
            </div>
        </div>
    
        <?php if($config['multiplenav']): ?>
        <!--第二级菜单,只有在multiplenav开启时才显示-->
        <div id="secondnav">
            <ul class="nav nav-tabs nav-addtabs disable-top-badge" role="tablist">
                <?php if($fixedmenu): ?>
                <li role="presentation" id="tab_<?php echo $fixedmenu['id'];?>" class="active">
                    <a href="#con_<?php echo $fixedmenu['id'];?>" node-id="<?php echo $fixedmenu['id'];?>"
                        aria-controls="<?php echo $fixedmenu['id'];?>" role="tab" data-toggle="tab">
                        <i class="fa fa-dashboard fa-fw"></i> 
                        <span><?php echo $fixedmenu['title'];?></span> 
                        <span class="pull-right-container"> </span>
                    </a>
                </li>
                <?php endif;?>
            </ul>
        </div>
        <?php endif;?>
    </nav>